package cn.shyouchi.wuguanjia.android.api.matter;

import java.util.List;
import java.util.Map;

import cn.shyouchi.wuguanjia.android.model.BaseRequestResult;
import cn.shyouchi.wuguanjia.android.model.BaseResult;
import cn.shyouchi.wuguanjia.android.ui.home.security.thread.message.birthday.BirthdayNotice;
import cn.shyouchi.wuguanjia.android.ui.home.security.thread.message.casual.CasualNotice;
import cn.shyouchi.wuguanjia.android.ui.home.security.thread.message.matter.MatterBirthday;
import cn.shyouchi.wuguanjia.android.ui.home.security.thread.message.matter.MatterMeet;
import cn.shyouchi.wuguanjia.android.ui.home.security.thread.message.matter.MatterNotice;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Eenie on 2017/3/20 at 13:45
 * Email: 472279981@qq.com
 * Des:
 */

public interface MatterService {


    /**
     * 获取待办事项列表
     * @return
     */
    @GET("matterRemind")
    Observable<BaseRequestResult<List<MatterNotice>>> getMatters();

    /**
     * 获取生日提醒列表
     * @return
     */
    @GET("birthdaylist")
    Observable<BaseRequestResult<List<BirthdayNotice>>> getBirthdayList();
    /**
     * 获取随手拍列表
     * @return
     */
    @GET("readilyShootList")
    Observable<BaseRequestResult<List<CasualNotice>>> getErrorList();

    @GET("matterRemind/Info")
    Observable<BaseRequestResult<MatterMeet>> getMeetDetail(@Query("id") String id);

    @GET("readilyShoot/ListInfo")
    Observable<BaseRequestResult<List<CasualNotice>>> getErrorDetail();









    @GET("birthdayInfo")
    Observable<BaseRequestResult<MatterBirthday>> getBirthdayDetail(@Query("id") String id);


    @FormUrlEncoded
    @POST("matterRemind/checkstatus")
    Observable<BaseResult> AuditMeet( @FieldMap Map<String, Object> params);

    @FormUrlEncoded
    @POST("birthdayBlessing")
    Observable<BaseResult> sendGift( @FieldMap Map<String, Object> params);




}
